package com.yanqu.road.entity.activity.peakseacraft;

import com.yanqu.road.entity.activity.seacraft.SeacraftSouthSeaPatronsInfo;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description
 */
public class PeakSeacraftTeamInfo {

    /**
     * 门客 按战斗力排序 低到高
     */
    private List<PeakSeacraftPatronsInfo> teamList = new ArrayList<>();

    /**
     * 出战次数
     */
    private int times;

    /**
     * 突袭次数
     */
    private int raidTimes;

    /**
     * 小队类型
     */
    private int type;

    public List<PeakSeacraftPatronsInfo> getTeamList() {
        return teamList;
    }

    public void setTeamList(List<PeakSeacraftPatronsInfo> teamList) {
        this.teamList = teamList;
    }

    public int getTimes() {
        return times;
    }

    public void setTimes(int times) {
        this.times = times;
    }

    public int getRaidTimes() {
        return raidTimes;
    }

    public void setRaidTimes(int raidTimes) {
        this.raidTimes = raidTimes;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public PeakSeacraftTeamInfo clone() {
        PeakSeacraftTeamInfo teamInfo = new PeakSeacraftTeamInfo();
        for (PeakSeacraftPatronsInfo item : teamList) {
            PeakSeacraftPatronsInfo patronsInfo = new PeakSeacraftPatronsInfo();
            patronsInfo.setId(item.getId());
            patronsInfo.setLv(item.getLv());
            patronsInfo.setStageLv(item.getStageLv());
            patronsInfo.setSkinId(item.getSkinId());
            patronsInfo.setEarn(item.getEarn());
            patronsInfo.setPromotionId(item.getPromotionId());
            patronsInfo.setAddPlus(item.getAddPlus());
            teamInfo.getTeamList().add(patronsInfo);
        }
        teamInfo.setType(this.getType());
        teamInfo.setTimes(this.getTimes());
        teamInfo.setRaidTimes(this.getRaidTimes());

        return teamInfo;
    }
}
